home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
misc
/
emu
/
arosdev.lha
/
AROS
/
workbench
/
c
/
delete.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-27
|
655b
|
38 lines
/*
(C) 1995-97 AROS - The Amiga Replacement OS
$Id: delete.c,v 1.5 1997/01/27 00:22:36 ldp Exp $
Desc: Delete CLI command
Lang: english
*/
#include <exec/memory.h>
#include <exec/execbase.h>
#include <proto/exec.h>
#include <dos/dos.h>
#include <proto/dos.h>
#include <utility/tagitem.h>
int main (int argc, char ** argv)
{
STRPTR args[1]={ 0 };
struct RDArgs *rda;
LONG error=0;
rda=ReadArgs("FILE/A",(IPTR *)args,NULL);
if(rda!=NULL)
{
if (!DeleteFile(args[0]))
error = RETURN_ERROR;
FreeArgs(rda);
}
else
error=RETURN_FAIL;
if(error)
PrintFault(IoErr(),"Delete");
return error;
}